import axios from "~/axios";


export function register(username, password, repassword) {
    return axios.post("/register", {
        username, password, repassword
    })
}
export function login(username, password) {
    return axios.post("/login", {
        username, password
    })
}
export function getuser(id) {
    return axios.post("/getuser", {
        id
    })

}
export function updatepassword(form) {
    return axios.post("/updatepassword", form)
}
export function updateuser(data) {
    return axios.post("/updateuser", data)
}

export const updateImg="/api/updateImg"